package com.yanqu.road.server.cmd.activity.fivehero;

import com.yanqu.road.message.YanQuMessage;
import com.yanqu.road.pb.activity.FiveHeroProto;
import com.yanqu.road.server.cmd.CrossCommand;
import com.yanqu.road.server.cmd.CrossUnionCommand;
import com.yanqu.road.server.command.Cmd;
import com.yanqu.road.server.manager.activity.fivehero.CrossFiveHeroActivity;
import com.yanqu.road.server.manager.activity.fivehero.CrossFiveHeroMgr;
import com.yanqu.road.server.protocol.CrossProtocol;

@Cmd(code = CrossProtocol.C2_CROSS_FIVE_HERO_CAMP_INFO, desc = "")
public class CrossFiveHeroCampInfoCmd extends CrossUnionCommand {

    @Override
    public boolean parseData(YanQuMessage packet) throws Exception {
        FiveHeroProto.FiveHeroGetCampInfoReqMsg reqMsg = FiveHeroProto.FiveHeroGetCampInfoReqMsg.parseFrom(packet.getBytes());
        CrossFiveHeroActivity activity = CrossFiveHeroMgr.getFiveHeroActivity(reqMsg.getActivityId(),groupId);
        activity.campInfo(packet.getPlayerId(),reqMsg);
        return true;
    }

    @Override
    public void execute(YanQuMessage packet) throws Exception {

    }

    @Override
    public void sendData() {

    }
}
